var GG_CARDPickupGridViewControllerBase = PickupGridViewControllerBase.extend({
construct: function(config) {
    if(!config)config={};
    if(!config.appctx)config.appctx='';
    if(!config.containerid)config.containerid='';
    arguments.callee.$.construct.call(this,this.getDefaultCfg(config));
    this.regCodeLists(config);
    this.regUICounters(config);
    this.regUIActions(config);
    this.regUpdatePanels(config);
    this.regControllers(config);
}
,regCodeLists:function(config)
{
     /*性别*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_XB',datas:[{text:'男',value:'男',realtext:'男',color:'BlueViolet',iconcls:'fa fa-mars'},{text:'女',value:'女',realtext:'女',color:'Fuchsia',iconcls:'fa fa-venus'}]}));
     /*求职状态*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_QZZT',datas:[{text:'应届毕业求职',value:'应届毕业求职',realtext:'应届毕业求职'},{text:'目前正在找工作',value:'目前正在找工作',realtext:'目前正在找工作'},{text:'观望有好机会考虑',value:'观望有好机会考虑',realtext:'观望有好机会考虑'},{text:'目前不想换工作',value:'目前不想换工作',realtext:'目前不想换工作'}]}));
     /*学历学位*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_XLXW',datas:[{text:'本科',value:'5.本科',realtext:'本科'},{text:'大专',value:'4.大专',realtext:'大专'},{text:'硕士',value:'6.硕士',realtext:'硕士'},{text:'博士',value:'6.博士',realtext:'博士'},{text:'MBA',value:'7.MBA',realtext:'MBA'},{text:'中专',value:'3.中专',realtext:'中专'},{text:'高中',value:'2.高中',realtext:'高中'},{text:'初中及以下',value:'1.初中及以下',realtext:'初中及以下'}]}));
     /*行业*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_HY',datas:[{text:'房地产/建筑',value:'房地产/建筑',realtext:'房地产/建筑'},{text:'互联网/IT',value:'互联网/IT',realtext:'互联网/IT'},{text:'商业零售',value:'商业零售',realtext:'商业零售'},{text:'机械制造',value:'机械制造',realtext:'机械制造'},{text:'生物医药',value:'生物医药',realtext:'生物医药'},{text:'金融银行',value:'金融银行',realtext:'金融银行'}]}));
     /*到岗时间*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_DGSJ',datas:[{text:'随时',value:'0',realtext:'随时'},{text:'1周内',value:'7',realtext:'1周内'},{text:'一个月内',value:'30',realtext:'一个月内'},{text:'三个月内',value:'90',realtext:'三个月内'},{text:'待定',value:'99',realtext:'待定'}]}));
     /*工作类型*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_GZLX',datas:[{text:'全职',value:'全职',realtext:'全职'},{text:'兼职',value:'兼职',realtext:'兼职'},{text:'实习',value:'实习',realtext:'实习'},{text:'全职/兼职',value:'全职/兼职',realtext:'全职/兼职'}]}));
}
,regUICounters:function(config)
{
}
,regUpdatePanels:function(config)
{
     var me=this;
}
,regControllers:function(config)
{
  var cid=config.containerid;
    if(cid!='')cid=cid+'_';
}
,regUIActions:function(config)
{
}
,onInit:function(){
   arguments.callee.$.onInit.call(this);
   var form=this.getSearchForm();
form.register(new IBizTextField({id:this.getCId2()+'M5',name:'n_xm_like',form:form,width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'M6',name:'n_qzzt_eq',form:form,codelistid:'liteTwo_CLGG_QZZT',width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'M7',name:'n_gzlx_eq',form:form,codelistid:'liteTwo_CLGG_GZLX',width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'M8',name:'n_dgsj_eq',form:form,codelistid:'liteTwo_CLGG_DGSJ',width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'M9',name:'n_xb_eq',form:form,codelistid:'liteTwo_CLGG_XB',width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'Ma',name:'n_zgxl_eq',form:form,codelistid:'liteTwo_CLGG_XLXW',width:100})
);
form.register(new IBizTextField({id:this.getCId2()+'Mb',name:'n_gg_workname_like',form:form,width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'Mc',name:'n_hy_eq',form:form,codelistid:'liteTwo_CLGG_HY',width:100})
);
form.register(new IBizTextField({id:this.getCId2()+'Md',name:'n_zn_like',form:form,width:100})
);
form.register(new IBizTextField({id:this.getCId2()+'Me',name:'n_dd_like',form:form,width:100})
);
form.register(new IBizTextField({id:this.getCId2()+'Mf',name:'n_nl_gtandeq',form:form})
);
form.register(new IBizTextField({id:this.getCId2()+'M10',name:'n_nl_ltandeq',form:form})
);
form.register(new IBizTextField({id:this.getCId2()+'M11',name:'n_gznx_gtandeq',form:form})
);
form.register(new IBizTextField({id:this.getCId2()+'M12',name:'n_gznx_ltandeq',form:form})
);

}
,onSearchFormFieldChanged: function (fieldname, field, value) {
   var me=this;
   var form=me.getSearchForm();
}
,getDefaultCfg:function(cfg){
     var me=this;   
    var config={backendurl:cfg.appctx+'/Card/GG_CARDPickupGridView.do?'+'srfcid='+cfg.containerid+'&',loaddefault:true
                ,viewurl:'/card/gg_cardpickupgridview.jsp?'+'srfcid='+cfg.containerid+'&'
               ,ctrls:{grid:{multiSelect:true
,enablePaging:true,pageSize:20,forceFit:false
,columns:[
{ "title" : $IGM('DEF.LNAME.XM','姓名'),"width":150,"data" :'xm',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.XB','性别'),"width":150,"data" :'xb',"orderable":true,'render':function(data,type,row){return me.rendergrid_xb(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.NL','年龄'),"width":150,"data" :'nl',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.GZNX','工作年限'),"width":150,"data" :'gznx',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.DD','地点'),"width":150,"data" :'dd',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.QZZT','求职状态'),"width":150,"data" :'qzzt',"orderable":true,'render':function(data,type,row){return me.rendergrid_qzzt(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.SJ','手机'),"width":150,"data" :'sj',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.GG_CARD.ZGXL','第一学历'),"width":150,"data" :'zgxl',"orderable":true,'render':function(data,type,row){return me.rendergrid_zgxl(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.HY','行业'),"width":150,"data" :'hy',"orderable":true,'render':function(data,type,row){return me.rendergrid_hy(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.GG_CARD.ZN','职能类别'),"width":150,"data" :'zn',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.QWNX','期望月薪'),"width":150,"data" :'qwnx',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.YTJQY','已推荐企业'),"width":150,"data" :'ytjqy',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.TJSJ','推荐时间'),"width":150,"data" :'tjsj',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.UPDATEDATE','更新时间'),"width":150,"data" :'updatedate',"orderable":true}
]
},searchForm:{enableAdvanceSearch:false,dename:'GG_CARD'}}};
    return  $.extend({},config,cfg);
}
,doHideParentColumns: function (parentMode)
    {
        var me=this;
        arguments.callee.$.doHideParentColumns.call(this,parentMode);
 
}
    ,rendergrid_xb:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_CLGG_XB',data,'未定义');
    }
    ,rendergrid_qzzt:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_CLGG_QZZT',data,'未定义');
    }
    ,rendergrid_zgxl:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_CLGG_XLXW',data,'未定义');
    }
    ,rendergrid_hy:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_CLGG_HY',data,'未定义');
    }
});